<template>
  <div>
    <el-table v-bind="$attrs">
      <el-table-column
        v-for="(item, index) in $attrs.column"
        :key="index"
        :label="item.label"
      >
        <span> {{ $attrs.dataSource[index][item.prop] }} </span>
      </el-table-column>
    </el-table>
    <el-pagination background layout="prev, pager, next" :total="1000" />
  </div>
</template>

<script>
export default {
  name: 'ListTable'
}
</script>

<style scoped lang="scss"></style>
